<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>站点管理_添加站点</title>
<link href="/css/role.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-- title -->
<div class="right_title">
  <div class="h">系统模块->添加权限</div>
</div>
<!-- title end -->
<div class="zdgl">

 <form action="/role/su_auth.shtml" name="conts" onsubmit="return validate.getSubmit()();">
  <input name="id" value="${auth.id}" type="hidden" />
  <input name="auth.pid" value="${pid}" type="hidden" />
	<div class="line">
	    <div class="td_left">权限名称：</div>
	    <div>
	      <input type="text" name="auth.authName" value="${auth.authName}" maxlength="20" class="w_180" />
	    </div>
	  </div>

  <div class="line clear">
    <div class="td_left">菜单链接：</div>
    <div>
      <input type="text" name="auth.authRegexp" value="${auth.authRegexp}" class="w_180" maxlength="120" />
    </div>
  </div>
   <div class="line clear">
    <div class="td_left">匹配方式：</div>
    <div>
         正则匹配<input  type="radio" name="auth.model" value="1" <c:if test="${auth.model!='0'}">checked="checked"</c:if> /> 全匹配<input  type="radio" <c:if test="${auth.model=='0'}"> checked="checked"</c:if> name="auth.model" value="0" />
    </div>
  </div>
   <div class="sub clear"><input type="submit" name="sm" value="确定"> </div>
   </form>

</div>
</body>
</html>
<script type="text/javascript" src="/scripts/util.js"></script>	
<script type="text/javascript" src="/scripts/form_validate.js"></script>
<script type="text/javascript">

    validate.addvalidte(document.conts,{
        rules:{
           "auth.authName":{checkNull:true},
           "auth.authRegexp":{checkNull:true}
           },
	    message:{
	       "auth.authName":{checkNull:"&nbsp;"},
	       "auth.authRegexp":{checkNull:"&nbsp;"}
	    }
	    });
	
	    
	    

	

	function _submit(th){
      	if(validate.getSubmit()() ){
	       document.conts.submit();
	       th.disabled = "disabled";
	    }
	}
	
	
</script>

